﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AllList.aspx.cs" Inherits="Admin.Finance.SubInvoicePayMent.AllList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/Themes/Default/Css/Style.css" rel="stylesheet" type="text/css" />
    <link href="/Components/EasyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="/Components/EasyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="/Components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Jscript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Jscript/CheckBox.js" type="text/javascript"></script>
    <script src="/Components/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="/Jscript/midsoft.js" type="text/javascript"></script>
    <title>付款清单</title>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width: 100%;" cellpadding="2" cellspacing="0" class="workspacesearch">
        <tr>
            <td class="dt" align="center">
                查询条件
            </td>
            <td>
                <table style="width: 100%;"  cellspacing="0">
                    <tr>
                        <td class="tdbg" align="right"><b>发票编号：</b></td>
                        <td class="tdbg"><asp:TextBox ID="txtMinSubInvoiceNumber" runat="server"></asp:TextBox>
                            -<asp:TextBox ID="txtMaxSubInvoiceNumber" runat="server"></asp:TextBox>
                        </td>
                        <td class="tdbg" align="right"><b>领票人：</b></td>
                        <td class="tdbg"><asp:TextBox ID="txtInvoiceReceiveMan" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="tdbg" align="right"><b>收款时间：</b></td>
                        <td class="tdbg">
                        <input id="txtReceiveBeginDate" class="Wdate" type="text" onclick="WdatePicker()" runat="server" readonly="readonly" />-<input id="txtReceiveEndDate" class="Wdate" type="text" onclick="WdatePicker()" runat="server" readonly="readonly" />
                        </td>
                        <td class="tdbg" align="right"><b>收款人：</b></td>
                        <td class="tdbg"><asp:TextBox ID="txtPayMan" runat="server"></asp:TextBox></td>
                    </tr>
                </table>
            
            </td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
        <tr>
            <td>
                总收款金额：<asp:Label
                    ID="lblPayCount" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td align="right">
                <table width=150px>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:ImageButton ID="imgBtnSearch" ImageUrl="/Themes/TheOne/images/btn_search.gif"
                                runat="server" OnClick="btnSearch_Click" />
                        </td>
                        <td>
                            <a href="javascript:location.reload();">
                                <img alt="刷新" src="/Themes/TheOne/images/btn_reflash.gif" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8fc5dd">
        <tr>
            <td>
                <!--Search end-->
                <table height="325px" border="0" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td valign="top" height="300px">
                            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" CellPadding="4"
                                OnPageIndexChanging="gridView_PageIndexChanging" DataKeyNames="SubInvoicePaymentId"
                                OnRowDataBound="gridView_RowDataBound" AutoGenerateColumns="False" RowStyle-HorizontalAlign="Center"
                                OnRowCreated="gridView_OnRowCreated" ForeColor="#333333">
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <Columns>
                                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="checkboxname" name="checkboxname" onclick="javascript:SingleCheckJs();" runat="server" />
                                        </ItemTemplate>
                                        <ControlStyle Width="30px"></ControlStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="发票编号">
                                        <ItemTemplate>
                                            <a href="javascript:void(0);" onclick="openSysiframe('发票信息','/Finance/SubInvoice/Show.aspx?id=<%#Eval("SubInvoiceId") %>',420,350);"><%# Eval("InvoiceNumber")%></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="领票人">
                                        <ItemTemplate>
                                            <%# Eval("ReceiveMan")%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="发票金额">
                                        <ItemTemplate>
                                            <%# Eval("InvoiceMoney")%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="收款金额">
                                        <ItemTemplate>
                                            <a href="javascript:void(0);" onclick="openSysiframe('收款信息详情','/Finance/SubInvoicePayMent/Show.aspx?id=<%#Eval("SubInvoicePaymentId") %>',500,450);"><%#Eval("PayMoney")%></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="收款日期">
                                        <ItemTemplate>
                                            <a href="javascript:void(0);" onclick="openSysiframe('收款信息详情','/Finance/SubInvoicePayMent/Show.aspx?id=<%#Eval("SubInvoicePaymentId") %>',500,450);"><%#Convert.ToDateTime(Eval("PayDate")).ToShortDateString()%></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="收款人">
                                        <ItemTemplate>
                                            <a href="javascript:void(0);" onclick="openSysiframe('收款信息详情','/Finance/SubInvoicePayMent/Show.aspx?id=<%#Eval("SubInvoicePaymentId") %>',500,450);"><%#Eval("PayMan")%></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#598cbf" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle HorizontalAlign="Center" BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass=""
                                FirstPageText="首页" HorizontalAlign="Right" LastPageText="末页" NextPageText="下一页"
                                PageIndexBoxType="TextBox" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Always"
                                ShowPageIndexBox="Always" OnPageChanged="AspNetPager1_PageChanged">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
